package com.kgc.service;

import entity.Machining;
import entity.ResponseMessage;
import org.apache.log4j.Logger;

/**
 *
 * @description: 加工工艺管理service接口
 *
 * @author: Cheng
 *
 * @create: 2022-04-18 17:56
 **/
public interface IMachiningProviderService {

//    private Logger logger = Logger.getLogger(this.getClass());


    /**
     * 检查加工工艺是否同名
     * @param name
     * @return
     */
    ResponseMessage selectInsrtCheckName(String name);

    /**
     * 添加一条加工管理信息
     * @param machining
     * @return
     */
    ResponseMessage insertMachiningInfo(Machining machining);

    /**
     * 分页查询加工工艺信息
     * @param pageNum
     * @param name
     * @param sort
     * @return ResponseMessage
     */
    ResponseMessage selectMachiningInfo(Integer pageNum, String name, String sort);

    /**
     * 根据id查询加工工艺信息
     * @param id
     * @return
     */
    ResponseMessage selectMachiningById(String id);

    /**
     * 根据id更新加工工艺
     * @param machining
     * @return
     */
    ResponseMessage updateMachiningInfo(Machining machining);


}
